/*
*
==============================================================================
*  Name        : 
*  Part of     : Omen Game Engine
*  Description : 
*  Version     : 1.0
*
*  Copyright (c) 2013 Lauri Kortevaara.
* 
==============================================================================
*/

#ifndef Omen_INPUTSERVER_H
#define Omen_INPUTSERVER_H

#include "OmenConfig.h"
#include "IOmenInputServer.h"
#include "IOmenInputDriver.h"
#include "IOmenEvent.h"
#include "OmenEvents.h"

#include <vector>
#include <string>

namespace Omen {

  /// <summary>Manages Input related stuff for the engine</summary>
  class InputServer : public IInputServer {

    private: 
        typedef std::vector<IInputDriver *> InputDriverVector; /// <summary>A vector of Input drivers</summary>
   
    public: 
        OMEN_API virtual ~InputServer(); /// <summary>Releases the resources of the Input server</summary>
        OMEN_API virtual void addInputDriver( Omen::IInputDriver* pInputDriver); /// <summary>Allows plugins to add new Input drivers</summary>
    
        OMEN_API virtual size_t getDriverCount() const; /// <summary>Gets the total number of registered Input drivers</summary>
    
        OMEN_API virtual IInputDriver &getDriver(size_t Index); /// <summary>Accesses a driver by its index</summary>
        OMEN_API virtual void handleInput() const;

    private: 
        InputDriverVector InputDrivers; /// <summary>All available Input drivers</summary>
        
  };

  // ----------------------------------------------------------------------- //

} // namespace Omen

#endif // Omen_INPUTSERVER_H
